package day10;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class WeatherServer {
    public static void main(String[] args) {
        try {
            ServerSocket st =new ServerSocket(8888);
            while(true){
                final Socket s =st.accept();
                new WeatherThread(s).start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}